import request from '@/utils/request'

export function getUserByRoleApi(query) {
  return request({
    url: '/shipping/sysUser/getUserByRole',
    method: 'get',
    params: query
  })
}

export function deleteApi(params) {
  return request({
    url: '/shipping/booking',
    method: 'delete',
    params
  })
}

export function historyApi(id) {
  return request({
    url: `/shipping/booking/history/${id}`,
    method: 'get'
  })
}